var date=new Date();
date.setFullYear(2022);
date.setMonth(7-1);
date.getDate(1);
var year=date.getFullYear();
var month=date.getMonth();
var day=date.getDate();
console.log(year+'年'+(month+1)+'月'+day+'日');